﻿package mortal.game.view.common.tooltip.tooltips
{
    import mortal.game.view.common.tooltip.tooltips.base.*;
    import mortal.game.view.medal.*;
    import mortal.game.view.medal.view.*;

    public class ToolTipMedalTotal extends ToolTipScaleBg
    {
        private var _infoPanel:MedalRightPart;

        public function ToolTipMedalTotal()
        {
            this.createChildren();
            return;
        }// end function

        public function createChildren() : void
        {
            setBg();
            this._infoPanel = new MedalRightPart();
            this._infoPanel.x = 10;
            this.addChild(this._infoPanel);
            paddingBottom = 10;
            return;
        }// end function

        override public function set data(param1) : void
        {
            var _loc_2:* = param1;
            this._infoPanel.updateMedal(_loc_2.totalMedalDic);
            this._infoPanel.updateSize();
            super.data = param1;
            return;
        }// end function

    }
}
